package com.test.thread;

public class MyThread extends Thread{
	private int count = 5;
	public MyThread(String name){
		super();
		this.setName(name);
	}
	
	public void run(){
		super.run();
		
		while (count > 0){
			count --;
			System.out.println("由线程" + this.getName() + "取得的值为:" + count);
		}
	}

}
